<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('请假管理')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-leave-edit" th:object="${employee}">
        <input name="employeeId" th:field="*{employeeId}" type="hidden">
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">请假时间： </label>
            <input type="text" class="time-input" id="leaveTime" placeholder="开始时间" name="leaveTime"/>
            <span>-</span>
            <input type="text" class="time-input" id="backTime" placeholder="结束时间" name="backTime"/>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
    var prefix = ctx + "system/employee";
    $("#form-leave-edit").validate({
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/leave", $('#form-leave-edit').serialize());
        }
    }
</script>
</body>
</html>